/*!
 * CodeGenerator(https://git.oschina.net/ptma/CodeGenerator)
 *
 * Date: 2019-06-11 05:48:13
 */
package com.azier.mysql.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Table: transport_resource_core - 配置信息核心表，包含配置信息的各种重要信息 <br/>
 *
 * @author 金建强(ptma@163.com)
 * @version 2019-06-11 05:48:13
 */
@Data
@Entity
@Table(name = "transport_resource_core")
public class TransportResourceCore implements Serializable {

    /** Column: core_id - 主键ID */
    @Id
    @Column(name = "core_id")
    private Long coreId;

    /** Column: device_id - 设备编号 */
    private String deviceId;

    /** Column: device_id - 项目id */
    private Long tenantId;

    /** Column: valid - 有效 */
    private Short valid;

    /** Column: config_index - 配置序号 */
    private Short configIndex;

    /** Column: data_quantity - 数据数量 */
    private Integer dataQuantity;

    /** Column: method - 解码方式 */
    private Short method;

    /** Column: store_address - 存放地址 */
    private Short storeAddress;

    /** Column: monitoring_id - 主键ID */
    private Long monitoringId;

    /** Column: data_index - 序号 */
    private Short dataIndex;

    /** Column: formula - 换算公式 */
    private String formula;

    /** Column: write_address - 写入地址(-1表示不可写入) */
    private Integer writeAddress;

    /** Column: index_id - 监测指标ID */
    /** Column: write_address - 写入地址(-1表示不可写入) */
    private Long indexId;

    private Integer dataType;
    /**
     * Column: value_type - 统计方法
     */
    private Integer valueType;

    /** Column: station_id - 站点ID */
//    @NotNull(message="db.transportResourceCore.stationId.NotNull")
    private Long stationId;

    /** Column: area_id - 区域主键 */
//    @NotNull(message="db.transportResourceCore.areaId.NotNull")
    private Long areaId;

    /** Column: region_code - 标准区划代码 */
//    @Length(max=12, message="db.transportResourceCore.regionCode.Length")
    private String regionCode;

    /** Column: sm_id - ID */
//    @NotNull(message="db.transportResourceCore.smId.NotNull")
    private Long smId;

    /** Column: monitoringCode - 网关内测点编码 */
//    @NotNull(message="db.transportResourceCore.monitoringcode.NotNull")
    private Integer monitoringCode;

    /** Column: smCode - 设施内测点编码 */
//    @NotNull(message="db.transportResourceCore.smcode.NotNull")
    private Integer smCode;

    /** Column: adv_station_equipment_id - 设施设备类型主表 */
//    @NotNull(message="db.transportResourceCore.advStationEquipmentId.NotNull")
    private Long advStationEquipmentId;

    /** Column: adv_station_monitor_id - 设备测点id */
//    @NotNull(message="db.transportResourceCore.advStationMonitorId.NotNull")
    private Long advStationMonitorId;


    private Integer equipmentSequence;

    private Integer monitoringSequence;

    private Long tempId;

    private Long typeId;
}
